import static org.junit.Assert.*;
import junit.framework.TestCase;


import org.junit.Test;


public class Tests extends TestCase {

	
	public static void setUpBeforeClas() {
		
		
	}
	public void setUp() throws Exception {
	}

	@Test
	public void testMas() {
		ResolucionMas s = new ResolucionMas();
		assertEquals (s.ResolucionMas(4,2),-2.0);
	}
	public void testMenos() {
		ResolucionMenos h = new ResolucionMenos();
		assertEquals (h.ResolucionMenos(4,8),12.0);
	}
	public void testDentroRaiz(){
		DentroRaiz s =new DentroRaiz();
		assertEquals (s.DentroRaiz(6, 5, 2),-23.0);
	}
	
	//donde pruebo cada metodo
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Tests s=new Tests();
		s.testMas();
		s.testMenos();
		s.testDentroRaiz();
	}
}
